package com.copd.dto;

import com.copd.entity.Patient;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

public class PatientDTO {
    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd/MM/yyyy");

    public static Map<String, Object> toMap(Patient patient) {
        Map<String, Object> patientMap = new HashMap<>();
        patientMap.put("patientId", patient.getPatientId());
        patientMap.put("hospitalizationNumber", patient.getHospitalizationNumber());
        patientMap.put("name", patient.getName());
        patientMap.put("age", patient.getAge());
        patientMap.put("gender", patient.getGender());
        patientMap.put("examinationItems", patient.getExaminationItems());
        patientMap.put("treatmentPlan", patient.getTreatmentPlan());
        patientMap.put("dischargeAdvice", patient.getDischargeAdvice());
        return patientMap;
    }
} 